<template>
  <div>
    <div v-if="route.query.orderId">
      <detail/>
    </div>
    <div v-else>
      <all-order/>
    </div>
  </div>
</template>

<script setup lang="ts">
//引入子组件
import Detail from "@/pages/user/order/detail/detail.vue";
import {useRoute} from "vue-router";
import AllOrder from "@/pages/user/order/allOrder/all-order.vue";

const route = useRoute();
</script>

<style scoped></style>
